function cachingData(arr) {
    console.log('cachingData>>>>')
    arr.forEach(v => {
        // console.log('cachingData>>>>',v.item,v.value )
        if (!localStorage.getItem(v.item)) {
            localStorage.setItem(v.item, v.value)
        }
    });
}

function removeCachedData(arr) {
    arr.forEach(v => {
        localStorage.removeItem(v)
    });
}


export { cachingData, removeCachedData };